home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 13
/
Aminet 13 - August 1996.iso
/
Aminet
/
mus
/
misc
/
Beatific11.lha
/
Beatific11
/
Controller
< prev
next >
Wrap
Text File
|
1996-06-09
|
3KB
|
120 lines
Controller
----------
If you like you can connect something to one of the computer's controller
ports and Beatific can use it. Why would you want to do this?
You could wire up a gadget which sits between the output of a mixer and the
computer. It could detect beats and tell Beatific when they happen. This idea
was suggested by Wolfgang F. Gdrber <2e9326256@student.tuwien.ac.at>.
Or maybe you'd just like to use a joystick, joypad, or mouse instead of a
keyboard.
What to do
----------
The controller port that you use is the one used for joysticks, not the one
used for mice. You know.
You can use four of the pins on this controller port to tell Beatific to do
these things...
Quit (Amiga-Q)
Stop (Esc)
Pause (Space)
Start (Return)
The pins are numbered like this when you look at the controller port from the
outside...
.-----------.
| 1 2 3 4 5 |
`. 6 7 8 9 .'
`-------'
And each pin does this...
Pin # Joystick Mouse
1 Right -.
2 Left | Weird Mouse
3 Down | Things
4 Up -'
5 Fire 3 MMB
6 Fire 1 LMB
7 +5V DC
8 Ground
9 Fire 2 RMB
So wire up whatever it is to the controller port and get Beatific to use it
by setting the right tool types. Your widget can use pins 7 and 8 for power
and can send a pulse on any one of the other pins.
Don't send a pulse on pins 1 and 2 at the same time and don't send a pulse on
pins 3 and 4 at the same time. It'll mean that Beatific will ignore both of
the pulses. Use pins 5, 6, 9, and one of the others if you want to be sure.
Another thing: I'm not sure about the current/voltage/time/etc... for the
pulse. If you get it wrong something expensive will probably happen to your
computer. And it's all your fault when it happens, not mine.
Or you can just plug in a joystick, joypad, or mouse. If you plug in a mouse
only the buttons will work. Directions will go wrong, like if you accidently
use the mouse for a game which needs a joystick.
Tool Types (again)
------------------
Four tool types tell Beatific which pins in the controller port to use...
QUIT=<what>
STOP=<what>
PAUSE=<what>
START=<what>
<what> can be one of...
NONE - your wossname doesn't send a pulse for this action.
A pin number - 1 to 6 or 9.
A joystick or mouse action - converted to its pin number.
The actions are...
Pin # Joystick Mouse
1 RIGHT
2 LEFT
3 DOWN
4 UP
5 FIRE3 MMB
6 FIRE LMB
9 FIRE2 RMB
Some examples are...
QUIT=NONE
STOP=UP
PAUSE=9
START=LMB
The next tooltype is whether or not to ignore beats when stopped or paused.
If it's on, use the Alt key to start listening again...
IGNORE=<what>
<what> can be one of...
ON, YES, or TRUE.
OFF, NO, or FALSE.
Controls (again)
----------------
Just in case the thing you've connected can't easily stop sending beats, set
the ignore thing and use the Alt key. When it's stopped or paused Beatific
ignores any beats sent to it. Press the Alt key and it starts listening to
them again. If you didn't have this Beatific would just start up again
straight away when you stopped or paused it.